projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
801e19d
)
src/comp.c (Fcomp__register_subr): Handle advice activation (bug#42038).
author
Andrea Corallo
<akrl@sdf.org>
Sat, 27 Jun 2020 19:59:22 +0000
(20:59 +0100)
committer
Andrea Corallo
<akrl@sdf.org>
Sat, 27 Jun 2020 20:42:12 +0000
(21:42 +0100)
src/comp.c
patch
|
blob
|
history
diff --git
a/src/comp.c
b/src/comp.c
index 29aa6352085738ba841c1f26794d0b1be29ee1c1..6909aefda76bfa9aae1fba3a9f4f2397c734197f 100644
(file)
--- a/
src/comp.c
+++ b/
src/comp.c
@@
-4769,9
+4769,17
@@
DEFUN ("comp--register-subr", Fcomp__register_subr, Scomp__register_subr,
make_subr (SYMBOL_NAME (name), minarg, maxarg, c_name, doc_idx, intspec,
comp_u);
- set_symbol_function (name, tem);
LOADHIST_ATTACH (Fcons (Qdefun, name));
+ { /* Handle automatic advice activation (bug#42038).
+ See `defalias'. */
+ Lisp_Object hook = Fget (name, Qdefalias_fset_function);
+ if (!NILP (hook))
+ call2 (hook, name, tem);
+ else
+ Ffset (name, tem);
+ }
+
return tem;
}